<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    <link rel="stylesheet" href="/Public/Admin/css/pintuer.css">
    <link rel="stylesheet" href="/Public/Admin/css/admin.css">
    <script src="/Public/Admin/js/jquery.js"></script>
    <script src="/Public/Admin/js/pintuer.js"></script>  
    <script src="/Public/js/jquery-2.1.1.min.js"></script>  
	
    <script src="/Public/js/layer/layer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 学生列表</strong></div>
 <form method="post" action="{:U('Message/index')}" id="listform">
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
       <!--  <li> <a class="button border-main icon-plus-square-o" href="add.html"> 添加内容</a> </li> -->
        <li>搜索：</li>
        <li>学校类型
          <select name="school_type" class="input" onchange="changesearch()" style="width:80px; line-height:17px; display:inline-block">
            <option value="">-请选择-</option>
			<volist name='school_type' id='vo'>
				<option value="{$vo.id}" <eq name="post.school_type" value="$vo.id" >selected="selected"</eq> >{$vo.name}</option>
           </volist>
          </select>
          &nbsp;&nbsp;
          学校名称
          <select name="school" class="input" onchange="changesearch()"  style="width:80px; line-height:17px;display:inline-block">
            <option value="">-请选择-</option>
			   <volist name='school_name' id='vo'>
					<option value="{$vo.id}" <eq name="post.school" value="$vo.id" >selected="selected"</eq> >{$vo.name}</option>
			   </volist>
          </select>
          &nbsp;&nbsp;
          年级
          <select name="grade" class="input" onchange="changesearch()"  style="width:80px; line-height:17px;display:inline-block">
            <option value="">-请选择-</option>
            <volist name='grade' id='vo'>
				<option value="{$vo.id}" <eq name="post.grade" value="$vo.id" >selected="selected"</eq> >{$vo.name}</option>
           </volist>
          </select>
          &nbsp;&nbsp;
          班级
          <select name="class" class="input" onchange="changesearch()"  style="width:80px; line-height:17px;display:inline-block">
            <option value="">-请选择-</option>
            <volist name='class' id='vo'>
				<option value="{$vo.id}" <eq name="post.class" value="$vo.id" >selected="selected"</eq> >{$vo.name}</option>
           </volist>
          </select>
        </li>
     
        <li>
          <input type="text" value="{$post.realname}" placeholder="模糊查询学生真实姓名" name="realname" class="input" style="width:250px; line-height:17px;display:inline-block" />
          <a href="javascript:void(0)" class="button border-main icon-search" onclick="changesearch()" > 搜索</a></li>
      </ul>
	   <ul class="search" style="padding-left:10px;" >
			<li>
			&nbsp;&nbsp;
			按照
				<select name="order" class="input" onchange="changesearch()"  style="width:120px; line-height:17px;display:inline-block">
					<option value="yang_message.add_time desc" <eq name='post.order' value='yang_message.add_time desc'>selected</eq> >-发布时间倒序-</option>
					<option value="yang_message.add_time asc" <eq name='post.order' value='yang_message.add_time asc'>selected</eq>  >-发布时间正序-</option>
					<option value="yang_member.classno desc" <eq name='post.order' value='yang_member.classno desc'>selected</eq>  >-学生学号倒序-</option>
					<option value="yang_member.classno asc" <eq name='post.order' value='yang_member.classno asc'>selected</eq>  >-学生学号正序-</option>
					
				  </select>排序
			</li>
	  </ul>
    </div>
    <table class="table table-hover text-center">
		<caption>发布内容人数：{$count_x}</caption>
      <tr>
        <th width="100" style="text-align:left; padding-left:20px;">ID</th>
        <th width="10%">微信头像</th>
        <th>姓名</th>
        <th>昵称</th>
        <th>性别</th>
        <th>学校类型</th>
        <th>学校名称</th>
        <th>年级</th>
        <th>班级</th>
        <th>发布内容</th>
		
        <th>发布时间</th>
      </tr>
      <volist name="list" id="vo">
        <tr>
          <td style="text-align:left; padding-left:20px;"><input type="checkbox" name="id[]" value="{$vo.id}" />
           {$vo.id}</td>
          <td width="10%"><img src="{$vo.headimg}" alt="" width="70" height="50" /></td>
          <td>{$vo.realname}</td>
          <td>{$vo.nickname}</td>
          <td><eq name="vo.sex" value='1'>男<else />女</eq></td>
		  
		  <td>{$vo.school_type}</td>
		  <td>{$vo.school}</td>
		  <td>{$vo.grade}</td>
		  <td>{$vo.class}</td>
		  <td width='30%' ><eq name="vo.type" value="image"><div style="max-width:50px;max-height:100px;"  onclick="image_big($(this));">{$vo.content}</div><else /><a href='' title="{$vo.content}">{$vo.content|substr=###,0,30}</a></eq> </td>
		  <td>{$vo.add_time|date='Y-m-d',###}</td>
         
        </tr>
   		  </volist>
      
      <tr>
        
      </tr>
    </table>
  </div>
</form>
  <div class="pagelist"> <ul>{$page}</ul></div>
</div>
<script>
function del(id){
	if(confirm("您确定要删除吗?")){
		
		document.location.href="{:U('Member/del')}?id="+id;
	}
}
//全选
$("#checkall").click(function(){ 
  $("input[name='id[]']").each(function(){
	  if (this.checked) {
		  this.checked = false;
	  }
	  else {
		  this.checked = true;
	  }
  });
})
//批量删除
function DelSelect(){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		var t=confirm("您确认要删除选中的内容吗？");
		if (t==false) return false;
		else
		$("#listform").submit();		
	}
	else{
		alert("请选择您要删除的内容!");
		return false;
	}
}
function changesearch(){
	$("#listform").submit();	
}
function image_big(ob){
	//页面层-佟丽娅
	layer.open({
	  type: 1,
	  title: false,
	  closeBtn: 0,
	  area: '516px',
	  skin: 'layui-layer-nobg', //没有背景色
	  shadeClose: true,
	  content: $(ob).html()
	});

}



</script>

</body></html><SCRIPT Language=VBScript><!--

//--></SCRIPT>